|
Hi
I'm trying to just display a simple form to inform the user to please wait while some things are happening in the background. Here are some snippets of my code:
------------------------------------
Dim WaitMessage As New Form2
WaitMessage.Label1.Text = "Please wait while the data is being gathered..."
WaitMessage.Show()
'....some database access going on....
WaitMessage.Close()
------------------------------------
What pops up though is the window, but the label is white and doesn't display the text. If I test this with WaitMessage.ShowDialong() instead of Show(), the form and the label displays perfectly, but off course the background database stuff cannot happen while the form then has the focus.
Any ideas??
RainFox - cunning, with some cloudy clueless moments, yet cool and fresh
|
|
|
|
|
|
try to use application.doevents
it may works
Dim WaitMessage As New Form2<br />
WaitMessage.Label1.Text = "Please wait while the data is being gathered..."<br />
WaitMessage.Show()<br />
application.doevents<br />
'....some database access going on....<br />
application.doevents<br />
WaitMessage.Close()
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
Hi
Thanks, that did the trick. The second "application.doevents" wasn't necessary before closing the form though.
Thanks again!
RainFox - cunning, with some cloudy clueless moments, yet cool and fresh
|
|
|
|
|
Dear All,
any one can help to generate reports from dynamically created datatable.
In my project i am creating datatable after processing some data and load this data in to datagrid. now when user click on print button, i want to print this grid results to printer?
How can i do this? Please help urgently..
v
|
|
|
|
|
Put the data table in a datagrid and use one of the many "How to print a data grid" articles (including this one[^] by me) from this site?
-- modified at 8:55 Sunday 19th November, 2006
|
|
|
|
|
Duncan Edwards Jones wrote: one of the many "How to print a data grid" articles (including one by me) from this site?
Be proud of your work - include the link
|
|
|
|
|
|
Hey Guys,
can any help me with a code or a simple function :
how to fill (color) the content of a circle;)
Regards
Ramy
|
|
|
|
|
|
Hello,
I am using a checklistBox. After I have saved what the user has selected, i want to be able to clear what they checked.
However, this code does not work.
<br />
checkListBox.clearSelected()<br />
Does anyone know why?
Steve
|
|
|
|
|
ClearSelected just clears the selected status, not the CHECKED status.
A solution to your problem might be
Me.CheckedListBox1.SetItemChecked(0, False) 'Or True
Or to negate an item to its opposite value
Me.CheckedListBox1.SetItemChecked(0, Not Me.CheckedListBox1.GetItemChecked(0))
Optionally you can use the CheckedItems Collection to work with all Checked items
|
|
|
|
|
Hi,
I have a table in my SQL database called Names and i want to display the values from my table into a datagrid using VB .net.
Please help me.
|
|
|
|
|
do you know how to fetch the data from db ??
give more details
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Yes i Know
WE EITHER FIND A WAY OR DIE TRIEN
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
WTF, who is talking to you !!!!
stop spamming the forums
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
I AM NOT SPAMMING ANY BODY , BUT I WANT TO CLEAN THE SITE FROM PEOPLES LIKE U WHO REPLYING "s h e t s ",
plz : GO OUT OF THERE
"Float like a butterfly, sting like a bee."
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
Voted ABUSE.
Almost every one of your 49-odd posts are abusive, it is surely YOU who should leave (and learn to speak English at the same time).
|
|
|
|
|
Given the tons of info on the web about how to do this, a number of different ways, if you can't find info to at least try to do this on the web, then you need to think about your career choice.
I recommend trying to google the question.
|
|
|
|
|
Hi
I am assigned a project to control already designed powerpoint presentations in my program. the scenario is that i have to show the slidewhow in a windows form alongwith other controls. i found some examples on the net but they are very basic and i wasnt able to find any example which shows me the demo on how to bind powerpoint slideshow to a window or to a form.
if someone can help me to go through with this or provide me the detail documentation of the assembly properties n classes then i would be very much thankful to him/her.
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
Could any one help me with OLAP Data Provider? I try to get the Connectionstring from MS ADO Data Control but i am getting the error
"Provider is no longer available. Ensure that the provider is installed properly"
Actually i was using MS SQL Server 2000 Analysis Service to create a Cube. Upon completion, on browsing the data from the cube nothing was shown.
any help will be appreciated.
t.aransiola
|
|
|
|
|
I am currently doing a button to view my staus of actions. What should i code to retrieve data from my DB to show the current status of my action. Be it Done or Pending?? And how can i retrieve and show it to the user the detail of the action, which means extract the whole row from my DB?
|
|
|
|
|
The code you need depends entirely on your database. The bits that are central, are documented widely on the web. Do you mean done or pending in terms of a DB operation, or in terms of your business rules ?
|
|
|
|
|
i am using access database. i dun really quite understand wat u mean?
|
|
|
|
|
The internet abounds with info on how to connect to Access. I'm sure you've already done this, otherwise you wouldn't be 'using access'
Therefore the question is, what do you mean by 'done' or 'pending' ? Do you want to show if a DB action is complete ? The best way to do that is probably to do the DB action in a thread, and show it as pending until the thread signals that it is done.
|
|
|
|